/*
 * @Author: Pabin <pabin_pluto@foxmail.com>
 * @Date: 2024-01-07 13:14:04
 * @LastEditors: Pabin <pabin_pluto@foxmail.com>
 * @LastEditTime: 2024-01-10 12:26:10
 * @FilePath: \ecg 4.0\mcu\Sources\send.c
 * @Description: 
 * 
 * Copyright (c) 2024 by Pabin, All Rights Reserved. 
 */
#include "send.h"


void SCI_SendWord(uint16_t data)
{
  SCI0_SendByte((byte)((data >> 8) & 0xFF));
  SCI0_SendByte((byte)(data & 0xFF));
}

void SCI_senddata_1_4(uint16_t header, short A, short B, short C, short D)
{
  SCI_SendWord(header);
  SCI_SendWord(A);
  SCI_SendWord(B);
  SCI_SendWord(C);
  SCI_SendWord(D);
}